#!/usr/bin/env python
#+_+ coding:utf-8 +_+
import urllib2, urllib
from xml.dom import minidom
import time
 
data = """
 <xml>
 <ToUserName><![CDATA[gh_b137c811bf9a]]></ToUserName>
 <FromUserName><![CDATA[oO1a2jrX4Jz1RVqHi03EW6QdMH9g]]></FromUserName> 
 <CreateTime>1348831860</CreateTime>
 <MsgType><![CDATA[text]]></MsgType>
 <Content><![CDATA[this 的test]]></Content>
 <MsgId>1234567890123456</MsgId>
 </xml>
"""

f = urllib2.urlopen(
        #url     = 'http://42.96.192.37/mp_wechat',
        url     = 'http://127.0.0.1/mp_wechat',
        data    = data
        )
print f.read()
